package com.edison.demo.until;

import java.util.Random;

/**
 * @author edison
 */
public class AfltOrgNoGenerator {
    private static final Random RANDOM = new Random();

    private AfltOrgNoGenerator() {
        throw new IllegalStateException("Utility class");
    }

    public static String generateAfltOrgNo() {

        // Start with the prefix "450"
        StringBuilder afltOrgNo = new StringBuilder("450");

        // Generate a random 7-digit number to complete the format
        for (int i = 0; i < 7; i++) {
            afltOrgNo.append(RANDOM.nextInt(10));
        }

        return afltOrgNo.toString();
    }
}
